let obj1 = {
  name: 'zhangsan',
  age: 12
}
let obj2 = {
  name: 'lisi',
  gender: 'male'
}
// 设置obj1的原型
Object.setPrototypeOf(obj1, obj2);
// 获取obj1的原型
console.log(obj1.__proto__);
console.log(obj1.constructor.prototype);
console.log(Object.getPrototypeOf(obj1));